#include<iostream>
#include<vector>

using namespace std;

class Solution {
public:
    vector<int> singleNumber(vector<int>& nums)
    {
        unsigned int t = 0;
        for (auto x : nums)t ^= x;
        int count = t & (-t);
        int t1 = 0;
        for (auto x : nums)
        {
            if (x & count)t1 ^= x;
        }
        int t2 = t1 ^ t;
        return { t1,t2 };



    }
};


int main()
{
    class Solution().singleNumber({ 1,2,1,3,2,5 });



    return 0;
}